package main

import (
	"encoding/json"
	"fmt"
)

type Quota struct {
	Name       string         `json:"name"  valid:"Required;AlphaNumeric"`
	CPURequest int64          `json:"cpuRequest"  valid:"Required;Min(1)"`
	CPULimit   int64          `json:"cpuLimit" valid:"Required;Min(1)"`
	MEMRequest MemoryResource `json:"memRequest"`
	MEMLimit   MemoryResource `json:"memLimit"`
}

type MemoryResource struct {
	Value int64  `json:"value"`
	Unit  string `json:"unit"`
}

func main() {
	quota := Quota{}
	marshal, _ := json.Marshal(quota)
	fmt.Println(string(marshal))
}
